<?php
if (!defined('IN_CONTEXT')) die('access violation error!');

$operations = array();
$operations = lib_toolkit::getOperations();

?>
<div id="left">
	<div id="jobs">
	<p class='ll1'><img class='icon' src='./images/icon.jpg'/>作业管理</p>
	<p id='myjobs' class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=job&_a=myJobPage">我的作业</a></p>
	<!--p id='doing' class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="#">正在处理的作业</a></p-->
	<p id='finished' class='ll'><img class='icon2' src='./images/icon1.jpg'/><a href="index.php?_m=job&_a=finishedJob">已完成作业</a></p>
	</div>
	
	<?php if(in_array('doRoleList',$operations) || in_array('doRoleRight',$operations) || in_array('doAssignRole',$operations)) {?>
	<div id="roles">
	<p class='ll1'><img class='icon' src='./images/icon.jpg'/>角色管理</p>
	<?php if(in_array('doRoleList',$operations)) {?>
	<p class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=role&_a=doRoleList">角色管理</a></p>
	<?php }?>
	<?php if(in_array('doRoleRight',$operations)) {?>
	<p class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=role&_a=doRoleRight">角色权限</a></p>
	<?php }?>
	<?php if(in_array('doAssignRole',$operations)) {?>
	<p class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=role&_a=doAssignRole">角色分配</a></p>
	<?php }?>
	</div>
	<?php }?>
	
	<?php if(in_array('doAddUser',$operations) || in_array('doUserList',$operations) || in_array('doSetItem',$operations)) {?>
	<div id="users">
	<p class='ll1'><img class='icon' src='./images/icon.jpg'/>用户管理</p>
	<?php if(in_array('doAddUser',$operations)) {?>
		<p id='addUsers' class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=user&_a=addUserPage">添加用户</a></p>
	<?php }?>
	
	<?php if(in_array('doUserList',$operations)) {?>
		<p id='userLists' class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=user&_a=doUserList">用户列表</a></p>
	<?php }?>
	
	<?php if(in_array('doSetItem',$operations)) {?>
		<p id='Configs' class='ll'><img class='icon2' src='./images/icon1.jpg'/><a href="index.php?_m=check&_a=checkItemPage">检测项设置</a></p>
	<?php }?>
	</div>
	<?php }?>
	
	<div id="statistics">
	<p class='ll1'><img class='icon' src='./images/icon.jpg'/>数据统计</p>
	<p id="s_job" class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=statistics&_a=showStatisticsPage">作业统计</a></p>
	<p id="s_log" class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="#">日志统计</a></p>
	<p id="s_calendar" class='ll'><img class='icon1' src='./images/icon1.jpg'/><a target='_blank' href="index.php?_m=statistics&_a=showCalendarPage">我的日历</a></p>
	</div>
	
	<div id="exit">
	<p class='ll1'><img class='icon' src='./images/icon.jpg'/>退出系统</p>
	<p id="quit" class='ll'><img class='icon1' src='./images/icon1.jpg'/><a href="index.php?_m=index&_a=dologout">退出系统</a></p>
	</div>
</div>